package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 【请填写功能名称】对象 ztf_video_table
 * 
 * @author ruoyi
 * @date 2025-05-30
 */
@ApiModel("视频传输数据实体")
@Data
public class ZtfAppVideoTable extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键IDuudi */
    @ApiModelProperty("视频主键id")
    private String id;

    /** 视频标题 */
    @Excel(name = "视频标题")
    @ApiModelProperty("视频标题")
    private String title;

    /** 视频描述 */
    @Excel(name = "视频描述")
    @ApiModelProperty("视频描述")
    private String description;

    /** 视频地址 */
    @Excel(name = "视频地址")
    @ApiModelProperty("视频地址")
    private String videoUrl;

    @ApiModelProperty("视频名")
    private String videoName;

    @Excel(name = "视频地址")
    @ApiModelProperty("视频地址")
    private String fileUrl;
    /** 视频'缩略图地址（URL） */
    @Excel(name = "视频'缩略图地址", readConverterExp = "U=RL")
    @ApiModelProperty("视频缩略地址")
    private String thumbnail;

    /** 上传时间 */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("视频上传时间")
    private Date uploadTime;

    /** 视频时长 */
    @Excel(name = "视频时长")
    @ApiModelProperty("视频时长")
    private String duration;

    /** 视频分类 */
    @Excel(name = "视频分类")
    @ApiModelProperty("视频分类")
    private String category;

    /** 观看次数 */
    @Excel(name = "观看次数")
    @ApiModelProperty("视频观看次数")
    private String views;

    /** 观看人id */
    @Excel(name = "观看人id")
    private String viewsId;

    /** 是否有效1有效，0无效 */
    @Excel(name = "是否有效1有效，0无效")
    private Long isActive;

    @ApiModelProperty("课程id")
    private String ztfId;

    @ApiModelProperty("视频缩略图名")
    private String thumbnailName;

    @ApiModelProperty("课程分类名")
    private String ztfName;

    @ApiModelProperty("视频排序")
    private int sort;

    @ApiModelProperty("是否已播放完，0是未播放完，1是已播放完")
    private  Integer isOver;

    @ApiModelProperty("已学习多少节")
    private Integer ztfStudyClasshortB;

    @ApiModelProperty("文件主路径")
    private String targetFolder ;

    @ApiModelProperty("视频分类")
    private String videoType  ;

    @ApiModelProperty("文件主路径子路径")
    private String subFolder   ;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setVideoUrl(String videoUrl) 
    {
        this.videoUrl = videoUrl;
    }

    public String getVideoUrl() 
    {
        return videoUrl;
    }

    public void setThumbnail(String thumbnail) 
    {
        this.thumbnail = thumbnail;
    }

    public String getThumbnail() 
    {
        return thumbnail;
    }

    public void setUploadTime(Date uploadTime)
    {
        this.uploadTime = uploadTime;
    }

    public Date getUploadTime()
    {
        return uploadTime;
    }

    public void setDuration(String duration) 
    {
        this.duration = duration;
    }

    public String getDuration() 
    {
        return duration;
    }

    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }

    public void setViews(String views) 
    {
        this.views = views;
    }

    public String getViews() 
    {
        return views;
    }

    public void setViewsId(String viewsId) 
    {
        this.viewsId = viewsId;
    }

    public String getViewsId() 
    {
        return viewsId;
    }

    public void setIsActive(Long isActive) 
    {
        this.isActive = isActive;
    }

    public Long getIsActive() 
    {
        return isActive;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("description", getDescription())
            .append("videoUrl", getVideoUrl())
            .append("thumbnail", getThumbnail())
            .append("uploadTime", getUploadTime())
            .append("duration", getDuration())
            .append("category", getCategory())
            .append("views", getViews())
            .append("viewsId", getViewsId())
            .append("isActive", getIsActive())
            .toString();
    }
}
